var Worker = require('./worker.js').Worker;

function workerTest() {
    var worker = new Worker('Tom', 21);
    var expectResult = 'My name is Tom. I am 21 years old. I am a Worker. I have a job.';
    if (worker.introduce() === expectResult) {
        console.log('test passed');
    } else {
        console.log('test failed');
    }
}

workerTest();